package com.eastfair.es.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.DateFormat;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

import java.io.Serializable;
import java.util.Date;

@Data
public class AllLogDto implements Serializable {

    @ApiModelProperty(value = "主键id")
    private String id;

    @ApiModelProperty(value = "创建时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss.SSS",timezone = "GMT+8")
    private Date dateTime;


    @ApiModelProperty(value = "记录调用的IP地址")
    private String clientIp;


    @ApiModelProperty(value = "日志级别")
    private String logLevel;


    @ApiModelProperty(value = "类名称")
    private String className;

    @ApiModelProperty(value = "应用运行所属IP地址")
    private String serverName;

    @ApiModelProperty(value = "记录服务IP地址")
    private String serverIp;

    @ApiModelProperty(value = "链路id")
    private String traceId;

    @ApiModelProperty(value = "应用名")
    private String appName;

    @ApiModelProperty(value = "端口")
    private Integer post;

    @ApiModelProperty(value = "应用环境")
    private String env;

    @ApiModelProperty(value = "操作人id")
    private Long userId;

    @ApiModelProperty(value = "操作人名称")
    private String userName;

    @ApiModelProperty(value = "开始时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date dateTimeStart;

    @ApiModelProperty(value = "结束时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date dateTimeEnd;

//    @ApiModelProperty(value = "多少条开始")
//    private String from;
//    @ApiModelProperty(value = "条数")
//    private String size;



}
